//
//  SearchGoodsView.swift
//  SearchGoodsView
//
//  Created by Ben on 2021/8/18.
//

import SwiftUI

struct SearchGoodsView: View {
    
    @Environment(\.presentationMode) private var presentationModel

    
    var body: some View {
        ZStack {
            VStack {
                Text("Hello, World!")
            }
        }
            .navigationBarBackButtonHidden(true)
            .toolbar {
                ToolbarItemGroup(placement: .navigationBarLeading) {
                    Text("返回")
                        .onTapGesture {
                            presentationModel.wrappedValue.dismiss()
                        }
                }
            }
    }
}

struct SearchGoodsView_Previews: PreviewProvider {
    static var previews: some View {
        SearchGoodsView()
    }
}
